<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class IndexController extends Controller
{
    //首页
    public function index(){
        return view('admin.index.index');
    }
    //我的桌面
    public function welcome(){
        return view('admin.index.welcome');
    }
    //退出登录
    public function logout(){
        auth()->logout();
        return redirect(route('admin.login'))->withErrors(['error'=>'请重新登录']);
    }
}
